package com.lftea.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.flex.remoting.RemotingInclude;
import org.springframework.stereotype.Service;

import com.lftea.dao.IEmployeeDAO;
import com.lftea.po.Employee;
import com.lftea.service.IEmployeeService;

@Service("employeeServiceImpl")
@RemotingDestination
public class EmployeeServiceImpl implements IEmployeeService {

	@Resource(name = "employeeDAOImpl")
	private IEmployeeDAO employeeDAOImpl;

	@RemotingInclude
	public List<Employee> findAll() {
		return employeeDAOImpl.findAll();
	}

	@RemotingInclude
	public Employee findById(long employeeId) {
		return employeeDAOImpl.findById(employeeId);
	}

	@RemotingInclude
	public void remove(Employee employee) {
		employeeDAOImpl.remove(employee);
	}

	@RemotingInclude
	public void save(Employee employee) {
		employeeDAOImpl.save(employee);
	}

}
